package com.cw.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.conditions.query.LambdaQueryChainWrapper;
import com.baomidou.mybatisplus.extension.service.impl.*;
import com.cw.entity.*;
import com.cw.mapper2.*;
import com.cw.service.*;
import org.springframework.stereotype.*;

import java.util.List;
import java.util.stream.Collectors;

/**
 * <p>
 * 住院病区与科室联系表 服务实现类
 * </p>
 *
 * @author smq
 * @since 2021-05-05
 */
@Service
public class ThisIaNurseVsDeptServiceImpl extends ServiceImpl<ThisIaNurseVsDeptMapper, ThisIaNurseVsDept> implements IThisIaNurseVsDeptService {


    public List<ThisIaNurseVsDept> getNurseVsDeptList() {
        LambdaQueryWrapper<ThisIaNurseVsDept> lw = new LambdaQueryWrapper<>();
        return list(lw).stream().distinct().collect(Collectors.toList());
//        return  list(new LambdaQueryWrapper<ThisIaNurseVsDept>()).stream().distinct().collect(Collectors.toList());

    }

}
